package cate.game.role.pvp.videohall.msg;

import cate.common.table.d.GDVideoHall;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBVideoHall;
import easy.java.dev.note.NoteField;


@ClientMsg(title = "单个分组的录像 の 请求")
public class VideoGroupReq implements MsgInput {
    @NoteField(value = "分组")
    public int group;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        GDVideoHall.Group g = GDVideoHall.Group.getGroup(group);
        if(g == null){
            game.notice.message(cc.getRole(),"错误的录像分组");
            return;
        }
        game.videoHall.getVideoGroupVo(cc.getRole(), g);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBVideoHall.VIDEO_GROUP_REQ;
    }
}
